import request from '@/utils/myAioxs'

//获取手机验证码
export function getPhoneCode(data) {
  return request({
    url: `/code/v1/phone-code`,
    method: 'post',
    data
  })
}
export function infoRegister(data) {
  return request({
    url: `/user/v1/enroll-user`,
    method: 'post',
    data
  })
}
//注册
export function register(data) {
  return request({
    url: `/user/v1/register`,
    method: 'post',
    data
  })
}
//获取注册机构
export function getOrg() {
  return request({
    url: `/v1/get-app-org`,
    method: 'get',
  })
}
export function getCredentialType() {
  return request({
    url: `/user/v1/credential-type`,
    method: 'POST',
  })
}
export function getDegreeName(background) {
  return request({
    url: `/user/v1/degree-name/${background}`,
    method: 'POST',
  })
}
export function geteducational() {
  return request({
    url: `/user/v1/educational-background`,
    method: 'POST',
  })
}

export function getRankName(title) {
  return request({
    url: `/user/v1/rank-name/${title}`,
    method: 'POST',
  })
}
export function getTitleSeries(title) {
  return request({
    url: `/user/v1/title-series`,
    method: 'POST',
  })
}
export function getTitleLevel(title) {
  return request({
    url: `/user/v1/title-level`,
    method: 'POST',
  })
}
export function getProfessionalQualification(title) {
  return request({
    url: `/user/v1/professional-qualification`,
    method: 'POST',
  })
}
export function getProfessionalLevel(title) {
  return request({
    url: `/user/v1/professional-qualification-level`,
    method: 'POST',
  })
}


//绑定手机号

export function updatePhone(data) {
  return request({
    url: `/user/v1/update-phone`,
    method: 'post',
    data
  })
}



//弱密码修改
export function updatePassword(data) {
  return request({
    url: `/user/v1/update-phone-password`,
    method: 'post',
    data
  })
}
